package com.ice.app.system.role.vo;

import java.util.Date;
import java.util.List;

import com.iceframework.core.entity.TreeEntity;

public class RoleTreeVo implements TreeEntity<RoleTreeVo> {

	// 必须留
	private String id;
	private String parentId;
	private String roleName;
	private Integer roleType;
	private Integer status;
	private String createBy;
	private Date createDate;
	private String updateBy;
	private Date updateDate;
	private String remark;

	// 兼容zTree
	private String name;
	private Boolean checked;
	private String pId;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Boolean getChecked() {
		return checked;
	}

	public void setChecked(Boolean checked) {
		this.checked = checked;
	}

	public String getpId() {
		return pId;
	}

	public void setpId(String pId) {
		this.pId = pId;
	}

	private List<RoleTreeVo> children;

	public List<RoleTreeVo> getChildren() {
		return children;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	@Override
	public void setChildren(List<RoleTreeVo> children) {
		this.children = children;
	}

	@Override
	public String getId() {
		// TODO Auto-generated method stub
		return this.id;
	}

	@Override
	public String getParentId() {
		// TODO Auto-generated method stub
		return this.parentId;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public Integer getRoleType() {
		return roleType;
	}

	public void setRoleType(Integer roleType) {
		this.roleType = roleType;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}
